home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 034a / cdcomsig.zip / SAMPLE.BAT < prev   
DOS Batch File  |  1991-10-06  |  840b  |  44 lines

  1. echo off
  2. rem this is a sample batch file for running cdcom with your bbs
  3. rem edit it for your system (drives/paths/etc)
  4. ctty con
  5. c:
  6. cd \cdcom
  7. cdcom c:\pbasic\callinfo.bbs
  8. rem 5 = denied access to cdrom or security not in cdcom.sec
  9. if errorlevel 5 goto deniedaccess
  10. rem 4 = time expired in door
  11. if errorlevel 4 goto timexpired
  12. rem 3 = dropped carrier in door
  13. if errorlevel 3 goto droppedcarrier
  14. rem 2 = auto-logoff after download
  15. if errorlevel 2 goto autologoff
  16. rem 1 = program error
  17. if errorlevel 1 goto error
  18. goto end
  19.  
  20. :error
  21. echo Program Error Occured
  22. goto end
  23.  
  24. :autologoff
  25. echo User Auto-Logged Off
  26. goto end
  27.  
  28. :droppedcarrier
  29. echo User Dropped Carrier
  30. goto end
  31.  
  32. :timexpired
  33. echo Users Time Expired in Door
  34. goto end
  35.  
  36. :deniedaccess
  37. echo User Denied Access to Door
  38. goto end
  39.  
  40. :end
  41. c:
  42. cd\wildcat
  43. cat
  44.